import request from '@/utils/request'
// 外部转租赁
// 列表查询
export function getList(query) {
  return request({
    url: '/external/outChangeRent/list',
    method: 'get',
    params: query
  })
}

// 获取外部转租赁主详细信息
export function getSublease(query) {
    return request({
      url: `/external/outChangeRent/${query}`,
      method: 'get',
    })
  }

  //保存外部转租赁
export function outChangeRen(data) {
    return request({
      url: `/external/outChangeRent`,
      method: 'post',
      data:data
    })
}


  //提交外部转租赁
  export function outChangeRenSubmit(data) {
    return request({
      url: `/external/outChangeRent/submit`,
      method: 'post',
      data:data
    })
}

  //获取车辆信息
  export function getCarInfo(query) {
    return request({
      url: `/external/outRentInfo/getCarInfo`,
      method: 'get',
      params:query
    })
}

  //查询外部转租赁信息完善列表
  export function getPerfectList(query) {
    return request({
      url: `/external/outChangePerfect/list`,
      method: 'get',
      params:query
    })
}

  //获取外部转租赁信息完善详细信息
  export function getPerfectDetail(query) {
    return request({
      url: `/external/outChangePerfect/${query}`,
      method: 'get',

    })
}

  //修改外部转租赁信息完善 保存
  export function updatePerfect(data) {
    return request({
      url: `/external/outChangePerfect`,
      method: 'put',
      data:data

    })
}

  //修改外部转租赁信息完善 提交
  export function submitPerfect(data) {
    return request({
      url: `/external/outChangePerfect/submit`,
      method: 'post',
      data:data

    })
}


